<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>活动详情</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link rel="stylesheet" type="text/css" href="/zhenze/Public/home/css/reset.css"/>
    <link rel="stylesheet" href="/zhenze/Public/home/css/huodongxiangqing.css"/>
    <link rel="stylesheet" href="/zhenze/Public/home/css/font-awesome.min.css"/>
	<style>
	.btn00{line-height: 1.4rem;width: 16.75rem;margin: 1rem auto;border: none;background:#FF3C00;color: #FFFFFF;font-size:0.75rem;display: block;}
	</style>
</head>
<body>
	<div class="top">
		<a href="<?php echo U('seller/index');?>"><i class="fa fa-angle-left"></i></a>
		<p>活动详情</p></a>
	</div>
	<div class="cont">
		<ul id="gudong">
			<li style="font-size: 0.75rem;"><?php echo ($eventinfo["event_title"]); ?> 参与人员</li>
			<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><li>
					<p><?php echo (date('Y-m-d H:m:s',$data["addtime"])); ?></p>
					<p><?php echo ($data["nickname"]); ?></p>
					<p><?php echo ($data["mobile"]); ?></p>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
		<button onclick="getmore()" id="morebtn" data='1' class="btn00">更多</button>
	</div>
	<script type="text/javascript" src="/zhenze/Public/home/js/jquery-3.1.1.min.js" ></script>
	<script src="/zhenze/Public/home/js/screenSize.js" type="text/javascript" charset="utf-8"></script>
	<script>
		function getmore(){
			var page=parseInt($('#morebtn').attr("data"))+1;
			$.getJSON("<?php echo U('seller/details',array('event_id'=>$eventinfo['id']));?>&p="+page,function(result){
				$('#morebtn').attr("data",page);//重置当前页数
				var data=result.listinfo;
				if(data.length>0){
					var html="";
					for(var i=0;i<data.length;i++){
						html+='<li>';
						html+='	<p>'+data[i].addtime+'</p>';
						html+='	<p>'+data[i].nickname+'</p>';
						html+='	<p>'+data[i].mobile+'</p>';
						html+='</li>';
					}
					$("#gudong").append(html);
				}else{
					$("#morebtn").html('亲，没有数据了！');
				}
			});
		}
	</script>
</body>
</html>